﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Copad.BusinessCard.Model;
using Copad.BusinessCard.BLL;

public partial class BackgroundManage_Default : BusinessCardPageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string mode = this.Request.Params["mode"];
        if (!string.IsNullOrEmpty(mode))
        {
            if (mode == "logout")
            {
                Manager.WriteLog(OperationEnum.Logout, "用户：" + Manager.CurrentUser.User.Username + " 已退出");
                this.Session.Clear();
                Response.Redirect("login.aspx", true);
            }
        }
    }
}